package com.pdwl.cashoutpay.dao;

import com.pdwl.cashoutpay.entity.Merchant;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface MerchantMapper {
    int deleteByPrimaryKey(Integer mid);

    int insert(Merchant record);

    int insertSelective(Merchant record);

    Merchant selectByPrimaryKey(Integer mid);

    Merchant selectByOutMechantCode(String mid);

    Merchant selectByAccNo(String accNo);

    Merchant selectBySubMerchCode(String subMerchCode);

    Merchant selectByPMercId(String pMercId);

    Merchant selectByertNoAndPMercId(@Param("certNo") String certNo, @Param("pMercId")String pMercId);

    int updateByPrimaryKeySelective(Merchant record);

    int updateByOutMerchantCode(Merchant record);


    int updateByPrimaryKey(Merchant record);
}